<?php

namespace app\base\controller\api;

use think\admin\Controller;
use app\base\model\AiApiConfig;
use app\base\controller\api\Auth;
use app\base\service\TophubdataService;

/**
 * 各平台api参数配置
 * Class Login
 * @package app\store\controller
 */
class Tophubdata extends Auth
{
    public function search()
    {
        $q=input('q');
        $p=input('p',1);
        $res = TophubdataService::instance()->search($this->user_id,$q,$p);
        if($res['code']==0){
            $this->error($res['msg']);
        }else{
            $list = $res['data'];
            foreach ($list as $k=>$v){

            }
        }
        $this->success('获取成功', $list);

    }


}
